<%= form_for @article do |f| %>

<% if @article.errors.any? %>
    <div id="error_explanation">
        <h2><%= pluralize(@article.errors.count, "error") %> prohibited this article from being saved: </h2>
        <ul>
            <% @article.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
            <% end %>
        </ul>
    </div>
<% end %>

<p>
    <%= f.label :title %><br>
    <%= f.text_field :title, size: 100 %>
</p>
<p>
    <%= f.label :tag %><br>
    <%= f.text_field :tag, size: 100 %>
</p>
<p>
    <%= f.label :summary %><br>
    <%= f.text_area :summary, cols: 180, rows: 10 %>
</p>
<p>
    <%= f.label :text %><br>
    <%= f.text_area :text, cols: 180, rows: 30 %>
</p>
<p>
    <%= f.submit %>
</p>
<% end %>
